package com.ms;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableOpenApi
@MapperScan("com.ms.mapper")
@SpringBootApplication
public class Application {

//    这是一种方法，使用log的形式输出启动完成字样
    public static final String testString =
            "\n" +
            "                   _____.__    ________                                   \n" +
            "__  _  _____  ____/ ____\\  |  /  _____/_____    _____   ____  \n" +
            "\\ \\/ \\/ /\\  \\/  /\\   __\\|  | /   \\  ___\\__  \\  /     \\_/ __ \\ \n" +
            " \\     /  >    <  |  |  |  |_\\    \\_\\  \\/ __ \\|  Y Y  \\  ___/ \n"      +
            "  \\/\\_/  /__/\\_ \\ |__|  |____/\\______  (____  /__|_|  /\\___  >\n"       +
            "               \\/                    \\/     \\/      \\/     \\/ "          +
            "                                                                           "
            ;
    private static final Logger log = LoggerFactory.getLogger(Application.class);

    public static void main(String[] args) {
        //输出启动完成字样
//        log.info(testString);
        SpringApplication.run(Application.class, args);
    }
}
